gping: lock cargo dependencies
authorTianling Shen <[email protected]>
Mon, 11 Aug 2025 11:55:50 +0000 (19:55 +0800)
committerTianling Shen <[email protected]>
Mon, 11 Aug 2025 11:58:29 +0000 (19:58 +0800)
The new version of dns-lookup failed to build with musl:

error[E0308]: mismatched types
   --> gping/src/main.rs:331:19
    |
331 |         Ok(ip) => ip,
    |                   ^^ expected `Vec<IpAddr>`, found opaque type
    |
   ::: /builder/shared-workdir/build/sdk/dl/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/dns-lookup-2.1.0/src/lookup.rs:17:46
    |
17  | pub fn lookup_host(host: &str) -> io::Result<impl Iterator<Item = IpAddr> + use<>> {
    |                                              ------------------------------------ the found opaque type
    |
    = note:   expected struct `Vec<IpAddr>`

Signed-off-by: Tianling Shen <[email protected]>
net/gping/Makefile

index 89f366c4c2706a9675699ed90e7159e815c9043e..4990490a4293db01d69b7a507b9ffe4e8a52f475 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gping
 PKG_VERSION:=1.18.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/orf/gping/tar.gz/$(PKG_NAME)-v$(PKG_VERSION)?
@@ -37,7 +37,7 @@ define Package/gping/description
   also plot the execution time of arbitrary commands.
 endef
 
-Build/Compile = $(call Build/Compile/Cargo,gping)
+Build/Compile = $(call Build/Compile/Cargo,gping,--locked)
 
 $(eval $(call RustBinPackage,gping))
 $(eval $(call BuildPackage,gping))